﻿<%@ page language="java" errorPage="/common/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ page isELIgnored="false" %>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="auction" uri="http://www.shengruan.com/taglib"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<link href="../style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<c:url value='/admin/assets/js/jquery/jquery.js'/>"></script>
<script type="text/javascript" language="javascript">
// <![CDATA[
$(document).ready(function() {
<c:if test="${not empty requestScope.message}">
$("#infoSpan").html("<img src='<c:url value='/admin/assets/images/flag.gif'/>'><font color='#C00000'><c:out value='${requestScope.message}' escapeXml='false'/></font>");
</c:if>

});
// ]]>
</script>
</head>
<body class="main">
<table class="container" cellpadding="0" cellspacing="0">

<tr class="dark" valign="middle">
<td>
<form action="<c:url value='/admin/product/productClass-list.ac'/>" method="post" name="productCategoryListForm" id="productCategoryListForm" >
<table width="100%" border="0">
<tr class="dark" valign="middle">
<td colspan="2"><input class="button" type="button" value="新增" onClick="document.location='productClass-edit.jsp'">
类别：<input type="text" name="name" id="name" size="31" maxlength="31" value="${requestScope.name}">&nbsp;
    <input name="button" type="submit" class="button" id="button" value="查询" >
</td>
</tr>
  
  <c:if test="${not empty requestScope.message}">
<tr class="dark" valign="middle">
<td align="center"><span id="infoSpan" class="infoSpan">&nbsp;</span></td>
</tr>
</c:if>
</table>
</form>
</td>
</tr>
<tr>
<td colspan="2"><table class="list" align="center" cellspacing="1" cellpadding="0">
<tr class="heading">
<td width=13%>分类名称</td>
<td width=17%>注册时间</td>
<td width=8%>&nbsp;</td>
</tr>
<c:forEach var="productClass" items="${requestScope.productClassList}" varStatus="loop">
<tr <c:if test='${loop.count%2==0}'>class="odd"</c:if>>
  <td height="20">${productClass.name}</td>
  <td height="20">${productClass.createTime}</td>
  <td height="20" class="action">
    &nbsp;<a href="<c:url value='/admin/product/productClass-delete.ac?id=${productClass.id}'/>" onClick="return confirm('确认删除吗？')"><img src="<c:url value='/admin/images/delete.gif'/>" alt="删除" title="删除" border="0"></a>
    &nbsp;<a href="<c:url value='/admin/product/productClass-getById.ac?id=${productClass.id}'/>"><img src="<c:url value='/admin/images/edit.gif'/>" alt="编辑" title="编辑" border="0"></a>
    <!--&nbsp;<a href=""><img src="<c:url value='/admin/images/reset.gif'/>" width="22" height="15" title="刷卡记录" border="0"></a>--></td>
</tr>
</c:forEach>
<tr ><td colspan="5" height="40"></td></tr>
</table>
</td>
</tr>
</table>
</body>
</html>
